<template>
	<view>
		<view class="uni-flex-row" v-for="(item,i) in mydata" :key="i">
			<titleBar v-if="item.template_type == 'titleBar'" :mydata="item"></titleBar>
			<shangpinzu v-if="item.template_type == 'shangpinzu'" :load='load' :mydata="item" :commodityList="commodityList"></shangpinzu>
		</view>
	</view>
</template>

<script>
	import titleBar from './titleBar.vue'
	import shangpinzu from './shangpinzu.vue'
	export default {
		data() {
			return {}
		},
		components: {
			titleBar,
			shangpinzu
		},
		props: {
			mydata: {
				type: Array,
				default: null
			},
			commodityList:{
				type: Array,
				default: null
			}
		},
	}
</script>

<style>
</style>
